﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.WebInfo
{
    public class FriendlyLink
    {
        public int FLID { get; set; }
        public string FriendlyName { get; set; }
        public string WebLink { get; set; }
        public string FriendlyLogo { get; set; }
        public int? LinkClickCount { get; set; }
        public int? SortNum { get; set; }
        public int IsShow { get; set; }
        public DateTime CreateTime { get; set; }

        public static FriendlyLink AsFriendlyLink(WI_FriendlyLink obj)
        {
            FriendlyLink asObj = new FriendlyLink
            {
                CreateTime = obj.CreateTime,
                FLID = obj.FLID,
                FriendlyLogo = obj.FriendlyLogo,
                FriendlyName = obj.FriendlyName,
                IsShow = obj.IsShow,
                LinkClickCount = obj.LinkClickCount,
                SortNum = obj.SortNum,
                WebLink = obj.WebLink
            };
            return asObj;
        }
    }
}
